import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;

/**
 *  This is a test
 *  to build use command "javadoc test.java"
 *  @author diwu
 *  @param args the argument
 *  @return return void
 *  @see  Image
 */
public class JavaDocTest {
    /**
     *  Class constructor
     *  @param args here is args description
     */
    public static void main(String[] args) {
                JFrame frame1 = new JFrame("JAVA");
        frame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 
        JButton button = new JButton(" >> Test <<");
        //Add action listener to button
        button.addActionListener(new ActionListener() {
 
                public void actionPerformed(ActionEvent e)
                {
                    //Execute when button is pressed
                    System.out.println("You clicked the button");
                }
            });      
 
        frame1.getContentPane().add(button);
        frame1.pack();
        frame1.setVisible(true);

    }
}